package service

import (
	"context"
	"cronjob_work/internal/model/entity"
)

type IUcAdmin interface {
	AdminGetList(ctx context.Context, page, pageSize int, filters map[string]interface{}) ([]*entity.PpUcAdmin, int64)
	AdminGetById(ctx context.Context, id int) (*entity.PpUcAdmin, error)
}

var localUcadmin IUcAdmin

func UcAdmin() IUcAdmin {
	if localUcadmin == nil {
		panic("implement not found for interface localUcadmin, forgot register?")
	}

	return localUcadmin
}

func RegisterUcAdmin(i IUcAdmin) {
	localUcadmin = i
}
